package com.itcast.demo.algorithm;

import junit.framework.TestCase;

/**
 * @Author tyy
 * @Description TODO
 * @Since 2022/3/1
 */
public class TyyTest extends TestCase {

    public void change(Weight weight){
//        weight = null;
        weight.setCurrentWeight(10);

    }
    public void test(){
        int i = Runtime.getRuntime().availableProcessors();
        System.out.println("i = " + i);
        Weight weight = new Weight();
        weight.setIp("127.0.0.1");
        change(weight);
//        System.out.println("JSON.toString(weight) = " + JSON.toString(weight));
        System.out.println("weight = " + weight);

    }
}
